


const path = require('path')

module.exports={
    mode: 'development',
    entry:{
        app:'./src/app.js'
    },
    output:{
        filename: 'js/bundle.js',
        path: path.resolve(__dirname, './dist')
    },
    module: {
        rules:[
            {
                test: /\.(js|jsx)$/,
                use: 'babel-loader',
                exclude: /node_modules/
            }
        ]
    }
}